{% extends '../public/admin.html' %}

{% block sidebar %}
<ul class="nav nav-sidebar">
    {% if current_user.role == 0 %}
    <li id="option"><a href="/admin/manage/option">系统设置</a></li>
    {% end %}
    <li id="users"><a href="/admin/manage/users">用户管理</a></li>
    <li id="logs"><a href="/admin/manage/logs">日志管理</a></li>
</ul>
{% end %}

{% block section %}
    {% if op == 'option' %}
        {% include 'includes/manage/option.html' %}
    {% elif op == 'users' %}
        {% include 'includes/manage/users.html' %}
    {% elif op == 'logs' %}
        {% include 'includes/manage/logs.html' %}
    {% end %}
    {% include '../public/tips.html' %}
{% end %}

{% block footer %}
<script src="{{ static_url('js/manage.js') }}"></script>
{% end %}